<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>提交订单</title>
{insert name="module_cssjs" css="common.css;active.css" js="jquery.min.js;"}
</head>
{literal}
<script type="text/javascript">
$(document).ready(function() {
$('form[name="buy-form"]').submit(function() {
	var tid = parseInt($('input[name="tid"]').val());
	if(!tid || !$.isNumeric(tid)) {
		alert('未知门票');return false;
	}
	var num = parseInt($('input[name="num"]').val());
	if(!num || !$.isNumeric(num)) {
		alert('请输入正确的门票数量');return false;
	}
	var ticket_type = $('input[name="ticket_type"]:checked').val();
	
	if(parseInt(ticket_type)) {
		var gp = $('select[name="gp"]').val();
		var gt = $('select[name="gt"]').val();
		var gc = $('select[name="gc"]').val();
		if(!gp || !gt || !gc) {
			alert('请选择寄送地址');return false;
		}
		var location = $('input[name="location"]').val();
		if(!location) {
			alert('请输入收件人地址');return false;
		}
		var post = $('input[name="post"]').val();
		if(!post) {
			alert('请输入收件人');return false;
		}
		var receiver = $('input[name="receiver"]').val();
		if(!receiver) {
			alert('请输入收件人');return false;
		}
	} else {
		var name = $('input[name="name"]').val();
		if(!name) {
			alert('请输入姓名');return false;
		}
		var tellphone = $('input[name="tellphone"]').val();
		if(!tellphone || !$.isNumeric(tellphone)) {
			alert('请输入手机号码');return false;
		}
	}
});
});
</script>
{/literal}
<body>
{insert name="module_header"}
<div style="width:100%; background:#ffffff; padding-bottom:10px;">
<div class="cont_box">
	<div class="center_title" style="height:30px;">越实惠  &gt;&gt; 提交订单</div>
	<form name="buy-form" action="/order/check/" method="post">
	<input name="tid" value="{$tid}" type="hidden" />
	<div class="cont_box">
	   <div style="padding-bottom:18px;">
		<div class="order_l" style="position:relative;">
			<div class="order_img">
				<div class="img_pad"><img src="{$_conf.data_server}/{$product.image}" /></div>
				<div class="img_nr img_nr1">
					<p class="p1">{$product.name}</p>
					<p class="p2">{$ticket.name}</p>
					<p class="p2">单价：￥{$ticket.market_price}</p>
				</div>
				<div class="clear"></div>
				<div class="icon_i"></div>
			</div>
			<div class="img_line"></div>
			<div class="shul_box">
				<span class="shu1">购物数量</span>
				<span class="shu2"><input style="width: 20px" name="num" value="1" /></span>
				<div class="clear"></div>
			</div>
			<div class="img_line"></div>
			<div class="shul_box shu_mar">
				<span>总额</span>
				<span style="color:#FF0000; font-size:16px;" id="total">￥80</span>
				<span>送积分</span>
				<span style="color:#FF0000; font-size:16px;">80</span>
				<div class="clear"></div>
			</div>
			<div class="img_line"></div>
			<div class="tishi">
				<p>越实惠提示</p>
				<p>每个电子码必须一次性使用，不能分开使用，如需分开，可以在订单中增加相同的商品越实惠不提供发票，如需发票请联系我们</p>
			</div>
		</div>
		<div class="order_r">
			<div class="order_select">
				<div class="order_top"></div>
				<div class="input_box">
					<input checked="checked" name="ticket_type" type="radio" value="0"  class="radio_box"/><label class="label_d">电子票</label>
					<div class="clear"></div>
				</div>
				<div class="input_box input_mar">
				    <label class="label_input">接收人姓名</label>
					<input name="name" type="text" class="input_text input_text1" />
					<div class="clear"></div>
				</div>
				<div class="input_box input_mar">
				    <label class="label_input">接收手机号码</label>
					<input name="tellphone" type="text" class="input_text input_text2" />
					<div class="clear"></div>
				</div>
			</div>
			<div class="xian"></div>
			<div class="order_select">
				<div class="input_box">
					<input name="ticket_type" type="radio" value="1"  class="radio_box"/><label class="label_d">快递纸质票（+10元运费）</label>
					<div class="clear"></div>
				</div>
				<div class="input_box input_mar">
				    <label class="label_input" style="color:#D52F2F;">选择预设地址</label>
					<select name="" class="select_box">
						<option>江苏省泰州市兴化市大垛镇从六村3组</option>
						<option></option>
						<option></option>
						<option></option>
					</select>
					<div class="clear"></div>
				</div>
				<div class="input_box input_mar">
				    <label class="label_input">省市区</label>
					<input name="gp" type="text" class="input_text input_text1" />
					<input name="gt" type="text" class="input_text input_text1" />
					<input name="gc" type="text" class="input_text input_text1" />
					<div class="clear"></div>
				</div>
				<div class="input_box input_mar">
				    <label class="label_input">街道</label>
					<input name="location" type="text" class="input_text input_text3" />
					<div class="clear"></div>
				</div>
				<div class="input_box input_mar">
				    <label class="label_input">邮编</label>
					<input name="post" type="text" class="input_text input_text3" />
					<div class="clear"></div>
				</div>	
				<div class="input_box input_mar">
				    <label class="label_input">收货人姓名</label>
					<input name="receiver" type="text" class="input_text input_text1" />
					<div class="clear"></div>
				</div>
				<div class="div_box">
					<p>希望送货的时间</p>
					<div style="margin:5px 0px;">
					  <input name="receive_mode" checked="checked" type="radio" value="0" class="radio_box"/>
					  <label class="laben_ra">工作日、双休日与假日均可送货</label>
					</div>
					<div style="margin-bottom:5px;">
					  <input name="receive_mode" type="radio" value="1" class="radio_box"/>
					  <label class="laben_ra">只工作日送货（双休日、假日不用送，写字楼/商用地址客户请选择）</label>
					</div>
					<div  style="margin-bottom:5px;">
					  <input name="receive_mode" type="radio" value="2" class="radio_box"/>
					  <label class="laben_ra">只双休日、假日送货（工作日不用送）</label>
					</div>
					<div style="margin-bottom:5px;">
					  <input name="receive_mode" type="radio" value="3" class="radio_box"/>
					  <label class="laben_ra">学校地址/地址白天没人，请尽量安排其他时间送货（特别安排可能会超出预计送货天数）</label>
					</div>
					
					<p>配送相关特殊说明（配送公司会尽量协调）</p>
					<p><input name="receive_comment" type="text" class="input_text input_text3 input_m"/></p>
				</div>
			</div>
		</div>
	    <div class="clear"></div>
	   </div>
		<div class="sub_box">
			<div class="input_box input_mar" style="padding-left:0px;">
				    <label class="label_input" style="width:60px;">输入优惠码</label>
					<input name="coupon" type="text" class="input_text input_text3" />
					<input name="" type="submit" value="确认"  class="sub_btn" />
					<div class="clear"></div>
		    </div>	
			<div class="jine">商品金额：240元+运费：10元-优惠券：10元</div>
			<div class="jine" style="color:#FF3F3F;">应付总额：￥240元</div>
			<div class="jine"><input name="" type="submit" value="确认订单"  class="sub_btn sub_btn1" /></div>
		</div>
	</div>
	</form>
</div>
</div>
{include file="module/module_footer.html"}
</body>
</html>